package cn.liuding.pethome.basic.util;

import lombok.Data;

@Data
public class DepartmentResult {
    private boolean success;
    private String message;
/*
    public static DepartmentResult ok(boolean success,String message){
        DepartmentResult departmentResult = new DepartmentResult();
        departmentResult.setMessage("删除成功");
        departmentResult.setSuccess(true);;
        return departmentResult;
    }

    public static DepartmentResult error(boolean success,String message){
        DepartmentResult departmentResult = new DepartmentResult();
        departmentResult.setMessage("删除失败");
        departmentResult.setSuccess(false);;
        return departmentResult;
    }*/

    public static DepartmentResult create(){
        DepartmentResult departmentResult = new DepartmentResult();
        return departmentResult;
    }

    public DepartmentResult setSuccess(boolean success){
        this.success=success;
        return this;
    }

    public DepartmentResult setMessage(String message){
        this.message=message;
        return this;
    }
}
